﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Assignment2.Transitions;
using Assignment2.Actions;

namespace Assignment2.States
{
    class PlayingState : State
    {
        public PlayingState(ref Integer boringValue, ref Integer hungryValue, ref Integer toyValue, ref Integer foodValue, ref Integer idleTime)
            : base(ref idleTime)
        {
            Action playing = new PlayingAction(ref toyValue, ref boringValue);
            Action getHungry = new GettingHungryAction(ref hungryValue);
            actions.Add(playing);
            actions.Add(getHungry);
        }

        public override string ToString()
        {
            return "Playing";
        }

        public override void updateMember()
        {
            transitions.Add(StateAndTransitionPool.PlayingToWaiting);
        }
    }
}
